#include "Soc_test.h"
int main(){
    int a = 100;
    int b = 120;
    if( b - a != 20){
        goto bad;
    }else{
        asm(LOG_TRAP);
    }
    if( a - b != -20){
        goto bad;
    }else{
        asm(LOG_TRAP);
    }
    int c = 0;
    int i = 0;
    for (i; i < 5 ; i++)
    {
        c += 1;
        asm(LOG_TRAP);
    }
    if(c != 5)
    {   
        goto bad;
    }else{
        asm(LOG_TRAP);
    }

    int a = -7;
    int b = -8;
    int c = 9;
    uint32_t d = 10;
    uint32_t f = 11;
    if(a * b != 56) {
        goto bad;
    }
    if(a * c != -63){
        goto bad;
    }
    if(d * f != 110){
        goto bad;
    }
    goto good;
    return 0xffff;
bad:
    asm(BAD_TRAP);
good:
    asm(GOOD_TRAP);
}